package com.ruoyi.gateway.controller;

import com.ruoyi.gateway.service.ValidateCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author lgy
 * @Version 1.0
 * @description: TODO
 * @date 2023/3/22 10:17
 */
@RestController
@RequestMapping("/code")
public class CodeController {
    @Autowired
    ValidateCodeService validateCodeService;

    @RequestMapping("/checkCode")
    public void checkCode(String token) throws Exception {
        validateCodeService.code(token);
    }
}
